<!DOCTYPE html>
<html >
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<#include "/end/include/head.ftl"/>
<body style='overflow:scroll;overflow-x:hidden'>
<div class="main layui-clear">
    <form class="layui-form" action="${basePath}/user/doAdd.do" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label">用户名</label>
            <div class="layui-input-block">
                <input type="text"  name="username" readonly id="username" class="layui-input" required lay-verify="required" value="${user.username!}"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">所选角色</label>
            <div class="layui-input-block">
                <select id="roleId" disabled>
                    <#list roleList as r>
                        <option value="${r.id}" <#if user.roleId??><#if r.id == user.roleId>selected</#if></#if> >${r.roleName!}</option>
                    </#list>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">真实姓名</label>
            <div class="layui-input-block">
                <input type="text" name="realName" readonly id="realName" class="layui-input" value="${user.realName!}"/>

            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-block">
                <input type="text" name="mobilePhone" readonly id="mobilePhone" class="layui-input" value="${user.mobilePhone!}"/>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <#--<button class="layui-btn" lay-submit lay-filter="submitBtn" style="display: none;" id="submitBtn">立即提交</button>-->
                <#--<button type="reset" class="layui-btn layui-btn-primary">重置</button>-->
            </div>
        </div>
    </form>
</div>
</body>
